<%= ci_list(@platforms, :new_link => link_to(icon('plus', 'Add Platform...'), new_assembly_design_platform_path(@assembly))) do |builder, target| %>
  <% edit_url = assembly_design_platform_path(@assembly, target) %>
  <% builder.target link_to('', edit_url) %>
  <% builder.icon platform_image_url(target) %>
  <% builder.status do %>
    <%= status_marker('version',"#{target.ciAttributes.major_version}",'label-success') %>
    <% if target.respond_to?(:rfcAction) && target.rfcAction %>
      <%= status_marker('release', target.rfcAction, action_to_label(target.rfcAction)) %>
    <% end %>
  <% end %>
  <% builder.top do %>
  	<span class="topname"><%= target.ciName %></span>
  <% end %>
  <% builder.middle target.ciAttributes.description %>
  <% if has_design?(@assembly.ciId) %>
    <% builder.menu do |ci| %>
      <%= link_to icon('files-o', ' Copy'), new_clone_assembly_design_platform_path(@assembly, ci), :remote => true %>
      <%= link_confirm_busy(icon('trash', ' Delete'),
                            :url     => assembly_design_platform_path(@assembly, ci),
                            :method  => :delete,
                            :remote  => false,
                            :confirm => 'Delete platform?',
                            :body    => "Platform <b>#{ci.ciName}</b> will be marked for deletion and will be removed after design release is committed.") unless ci.rfcAction == 'delete' %>
    <% end %>
  <% end %>
<% end %>
